<?php echo $this->render('global/uploader.phtml'); ?>

<table>
	<tr>
		<td>
			<a class="button" href="<?php echo $this->baseUrl() ?>/cpmanufacturers/list">
				<div style="background:url(<?php echo $this->baseUrl() ?>/public/images/left_16.png);" class="inb">Wróć do listy</div>
			</a>
		</td>
		<td>
			<a class="button" href="javascript:void(null)" onclick="$('#formitem').submit()">
				<div style="background:url(<?php echo $this->baseUrl() ?>/public/images/save_16.png);" class="inb">Zapisz</div>
			</a>
		</td>
	</tr>
</table>

<form id="formitem" action="<?php echo $this->baseUrl() ?>/cpmanufacturers/item<?php echo isSet( $this->m_id ) ? '/id/' . $this->m_id : '' ?>" method="post" enctype="multipart/form-data">
<table cellspacing="0" cellpadding="6" class="tform">
	<tr>
		<td class="lb">Nazwa PL:</td>
		<td class="inpy">
			<?php if( isSet( $this->err_name_pl ) ) { ?>
				<input style="border:1px solid red;" type="text" name="name_pl" value="" />
				<div class="formerror"><?php echo $this->err_name_pl ?></div>
			<?php } else { ?>
				<input type="text" name="name_pl" value="<?php echo $this->name_pl ?>" />
			<?php } ?>
		</td>
	</tr>
	<tr>
		<td class="lb">Nazwa EN:</td>
		<td class="inpy"><input type="text" name="name_en" value="<?php echo $this->name_en ?>" /></td>
	</tr>
	<tr>
		<td class="lb">Nazwa CS:</td>
		<td class="inpy"><input type="text" name="name_cs" value="<?php echo $this->name_cs ?>" /></td>
	</tr>
	<tr>
		<td class="lb">Logo producenta:</td>
		<td class="inpy">
			<?php if( $this->logo ) { ?>
				<img id="act_form_logo" src="<?php echo $this->File( $this->logo, 200 ) ?>" />
			<?php } ?>
			<input id="form_logo" type="hidden" name="logo" value="<?php echo $this->logo ?>" />
			<div>
				<div class="fieldset flash" id="fsUploadProgress1">
					<span class="legend"></span>
				</div>
				<div style="padding-left: 5px;">
					<span id="spanButtonPlaceholder1"></span>
					<input id="btnCancel1" type="button" value="Cancel Uploads" onclick="cancelQueue(upload1);" disabled="disabled" style="margin-left: 2px; height: 22px; font-size: 8pt;width:120px;" />
					<br />
				</div>
			</div>
		
		</td>
	</tr>
	<tr>
		<td class="lb">Opis PL:</td>
		<td class="inpy"><textarea name="description_pl"><?php echo $this->description_pl ?></textarea></td>
	</tr>
	<tr>
		<td class="lb">Opis EN:</td>
		<td class="inpy"><textarea name="description_en"><?php echo $this->description_en ?></textarea></td>
	</tr>
	<tr>
		<td class="lb">Opis CS:</td>
		<td class="inpy"><textarea name="description_cs"><?php echo $this->description_cs ?></textarea></td>
	</tr>
	<tr>
		<td class="lb">Prowizja agenta:</td>
		<td class="inpy">
			<input type="text" name="provision" value="<?php echo $this->provision; ?>" />
		</td>
	</tr>
</table>
</form>

<table style="margin-top:8px;">
	<tr>
		<td>
			<a class="button" href="<?php echo $this->baseUrl() ?>/cpmanufacturers/list">
				<div style="background:url(<?php echo $this->baseUrl() ?>/public/images/left_16.png);" class="inb">Wróć do listy</div>
			</a>
		</td>
		<td>
			<a class="button" href="javascript:void(null)" onclick="$('#formitem').submit()">
				<div style="background:url(<?php echo $this->baseUrl() ?>/public/images/save_16.png);" class="inb">Zapisz</div>
			</a>
		</td>
	</tr>
</table>